package com.zjj.learn.designmodel.pattern.factory.simple_factory;



/**
 * *** @author zjj_admin
 * *** 2022/4/5 19:05
 */
public class CoffeeStore {

    public Coffee orderCoffee(String type){
        SimpleCoffeeFactory coffeeFactory = new SimpleCoffeeFactory();
        Coffee coffee = coffeeFactory.createCoffee(type);
        coffee.addMilk();
        coffee.addSugar();
        return coffee;
    }
}
